--战地急救
local zhandijijiu = fk.CreateSkill {
    name = "mcdh_zhandijijiu",
    tags = {Skill.Limited}
}

zhandijijiu:addEffect(fk.EnterDying,{
    can_trigger = function(self, event, target, player, data)
        return player:hasSkill(self) and player:usedSkillTimes(self.name,Player.HistoryGame) == 0  and target.hp < 1
    end,
    on_cost = function(self, event, target, player, data)
       return player.room:askForSkillInvoke(player, self.name, nil, "#mcdh_zhandijijiu-recover:"..target.id)
    end,
    on_use = function(self, event, target, player, data)
        local room = player.room
        room:recover({
            who = target,
            num =  1 - target.hp,
            recoverBy = player,
            skillName = self.name,
        })
        if player:isWounded() then
            room:recover({
                who = player,
                num =  1,
                recoverBy = player,
                skillName = self.name,
            })
        else
            room:changeMaxHp(player, 1)
        end
    end
})

Fk:loadTranslationTable{
    ["mcdh_zhandijijiu"] = "战地急救",
    ["#mcdh_zhandijijiu-recover"] = "战地急救:令 %src 回复体力至1点",
    [":mcdh_zhandijijiu"] = "限定技,当一名角色进入濒死状态时,你可以令其回复体力至1点,然后你回复1点体力,若你未受伤则改为加1点体力上限。",
}

return zhandijijiu